@extends('common.layout')
<!-- 自定义内容区域 -->
@section('content')
<div class="panel panel-default">
    <div class="panel-heading">学生详情</div>

    <table class="table table-bordered table-striped table-hover ">
        <tbody>
        <tr>
            <td width="50%">ID</td>
            <td>{{$student->id}}</td>
        </tr>
        <tr>
            <td>姓名</td>
            <td>{{$student->name}}</td>
        </tr>
        <tr>
            <td>年龄</td>
            <td>{{$student->age}}</td>
        </tr>
        <tr>
            <td>性别</td>
            <td>{{$student->sex == '0' ? '男' : ($student->sex == '1' ? '女' : '未知')}}</td>
        </tr>
        <tr>
            <td>添加日期</td>
            <td>{{date('Y-m-d',$student->created_at)}}</td>
        </tr>
        <tr>
            <td>最后修改</td>
            <td>{{date('Y-m-d',$student->updated_at)}}</td>
        </tr>
        </tbody>
    </table>
</div>
@stop